package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ToString
public class Car extends BaseDomain {
    public static final Integer UNINSURED = 0;//未投保状态
    public static final Integer INSURED = 1;//已投保状态

    private String owner;//车主姓名

    private String brand;//车辆品牌

    private String productName;//车辆型号

    private String carNum;//车牌号码

    private String displacement;//排量

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date purchaseDate;//购买日期

    private BigDecimal evaluation;//市场估价

    private String type;//车辆分类

    private String size;//车载大小

    private int status = UNINSURED;//投保状态

    private String info;//备注信息
}